<!-- Main.vue -->
<template>
  <div class="common-layout">
    <el-container>
      <el-aside >
        <AsideView/>
      </el-aside>
      <el-container>
        <el-header style="padding: 0;">
          <Header></Header>
        </el-header>
        <el-main>
          main
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup>
import AsideView from '../components/aside.vue';
import Header from '../components/Header.vue';
import { useStore } from 'vuex';

const store = useStore();
const isCollapse = computed(() => store.state.menu.isCollapse);
</script>

<style lang="less" scoped>
.common-layout {
  height: 100vh; 
  .el-container {
    height: 100%;
    width: 100%;
  }
}
.el-header {
  padding: 0;
  background-color: #fff;
  width: 100%;
}

</style>